<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form action="" name="我的表单">
        <p>
            <label for="">表单名称
                <input type="text" name="文本" value="白鲸">
            </label>
        </p>
        <p>
            <input name="按钮"
                    type="button"
                    value="显示表单名称"
                    onclick="this.form.文本.value = this.form.name"
            />
        </p>
    </form>
</body>
</html>